package com.ruoyi.caiwu.domain;

import java.math.BigDecimal;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.core.annotation.Excel;
import com.ruoyi.common.core.web.domain.BaseEntity;

/**
 * 币别表对象 currency_table
 *
 * @author ruoyi
 * @date 2025-02-25
 */
public class CurrencyTable extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 币别id */
    @Excel(name = "币别id")
    private Long currencyId;

    /** 币别验证 */
    @Excel(name = "币别验证")
    private String currencyCode;

    /** 币别名称 */
    @Excel(name = "币别名称")
    private String currencyName;

    /** 币别符号 */
    @Excel(name = "币别符号")
    private String symbol;

    /** 小数位数 */
    @Excel(name = "小数位数")
    private Long decimalPlaces;

    /** 货币的汇率 */
    @Excel(name = "货币的汇率")
    private BigDecimal exchangeRate;

    /** 是否可用 */
    @Excel(name = "是否可用")
    private Integer isActive;

    /** 创建时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "创建时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date createdAt;

    /** 更新时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "更新时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date updatedAt;

    public void setCurrencyId(Long currencyId)
    {
        this.currencyId = currencyId;
    }

    public Long getCurrencyId()
    {
        return currencyId;
    }
    public void setCurrencyCode(String currencyCode)
    {
        this.currencyCode = currencyCode;
    }

    public String getCurrencyCode()
    {
        return currencyCode;
    }
    public void setCurrencyName(String currencyName)
    {
        this.currencyName = currencyName;
    }

    public String getCurrencyName()
    {
        return currencyName;
    }
    public void setSymbol(String symbol)
    {
        this.symbol = symbol;
    }

    public String getSymbol()
    {
        return symbol;
    }
    public void setDecimalPlaces(Long decimalPlaces)
    {
        this.decimalPlaces = decimalPlaces;
    }

    public Long getDecimalPlaces()
    {
        return decimalPlaces;
    }
    public void setExchangeRate(BigDecimal exchangeRate)
    {
        this.exchangeRate = exchangeRate;
    }

    public BigDecimal getExchangeRate()
    {
        return exchangeRate;
    }
    public void setIsActive(Integer isActive)
    {
        this.isActive = isActive;
    }

    public Integer getIsActive()
    {
        return isActive;
    }
    public void setCreatedAt(Date createdAt)
    {
        this.createdAt = createdAt;
    }

    public Date getCreatedAt()
    {
        return createdAt;
    }
    public void setUpdatedAt(Date updatedAt)
    {
        this.updatedAt = updatedAt;
    }

    public Date getUpdatedAt()
    {
        return updatedAt;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("currencyId", getCurrencyId())
            .append("currencyCode", getCurrencyCode())
            .append("currencyName", getCurrencyName())
            .append("symbol", getSymbol())
            .append("decimalPlaces", getDecimalPlaces())
            .append("exchangeRate", getExchangeRate())
            .append("isActive", getIsActive())
            .append("createdAt", getCreatedAt())
            .append("updatedAt", getUpdatedAt())
            .toString();
    }
}
